import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    user: 'zed',
    nickname: '我思故我在'
  },
  mutations: {
    changeUser (state, obj) {
      state.user = obj.user
      state.nickname = obj.nickname
    }
  },
  actions: {

  }
})
